﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoolERP_Entities;
using CoolERP_DAL;

namespace CoolERP_BLL
{
    public class SystemParamBLL : BaseBLL<SystemParam>
    {
        public SystemParamBLL() { }

        public static string GetParamByKey(string key)
        {
            ISystemParamDAL _dal = new SystemParamDAL(new ErpEntities());
            SystemParam entity = _dal.GetEntity(t => t.key == key);
            if (entity != null)
                return entity.value;
            else
                return string.Empty;
        }
    }
}
